using System;
using System.Text;

using Peradigm.Framework.Domain.Security;
using Peradigm.Framework.Persistence;
using Peradigm.Framework.Domain.Parties;

namespace Liberty.Domain.DocumentManagement 
{
    [Serializable]
    public class DocumentType : PersistentModel
    {
        #region Constants
        #endregion

        #region Event Handlers
        #endregion

        #region Methods
        /// <summary>
        /// Creates a type of stubbed document populating frequently used primitives and the DocumentType
        /// Other aggregated objects are not populated by this factory method.
        /// </summary>
        /// <returns></returns>
        public static DocumentType TestInstance()
        {
            DocumentType stub = new DocumentType( 12L, new Byte[8], "Word Document" );

            return stub;
        }        
        #endregion

        #region Properties
        public string Name
        {
            get
            {
                return i_Name;
            }
            set
            {
                i_Name = value;
            }
        }
        #endregion

        #region Private Methods
        #endregion

        #region Private Properties
        #endregion

        #region Construction and Finalization
        public DocumentType( long oid, byte[] version, string name ) : base( oid, version )
        {
            this.Name = name;
        }
        #endregion

        #region Data Elements
        private string i_Name;
        #endregion
    }

}//end namespace DocumentManagement